/*
 * @Author: yuanweijiang
 * @Date: 2024-01-26 09:56:23
 * @LastEditors: yuanweijiang
 */
import request from '/@/utils/request';

export const pageList = (data: any) => {
	return request({
		url: '/geoserver/geoStyle/findGeoStylePage',
		method: 'post',
		data,
	});
};

export const deleteStyle = (data: any) => {
	return request({
		url: '/geoserver/geoStyle/deleteStyle',
		method: 'post',
		data,
	});
};
//创建
export const creatStyle = (data: any) => {
	return request({
		url: '/geoserver/geoStyle/publishStyle',
		method: 'post',
		data,
	});
};
//下载文件

export const uploadDownload = (styleName: any) => {
	return request({
		url: '/geoserver/geoStyle/downloadStyle',
		method: 'get',
		params: { styleName },
		responseType: 'blob'
	});
};

// 修改默认
export const editDefault = (data: any) => {
	return request({
		url: '/geoserver/geoStyle/updateGeoStyleDefault',
		method: 'post',
		data,
	});
};
